package com.h3bpm.kumhosunny.sample.controller.quartz;


import com.h3bpm.kumhosunny.sample.controller.SampleController;
import com.h3bpm.kumhosunny.sample.controller.utils.DateUtil;
import com.h3bpm.kumhosunny.sample.controller.utils.NemberUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author: wjq
 * @Date: 2019/9/23 18:37
 * @Description:
 */
@Component
public class SampleTask {

    private static Logger log = LoggerFactory.getLogger(SampleTask.class);

    /**
     * map置空定时器
     */
    @Scheduled(cron = "0 0 0 1 * ?")
    public void updateBookFans(){
        log.info("每日样品排序重置开始执行,{}", DateUtil.getCurrDateTime2());
         NemberUtil.clearMap();
        log.info("每日样品排序重置任务结束,{}",DateUtil.getCurrDateTime2());
    }
}
